import axios from '../../utils/request'

export const getArticles = (channelID, timestamp) => {
  return axios({
    method: 'get',
    url: '/app/v1_1/articles',
    params: {
      channel_id: channelID,
      timestamp,
      with_top: 1
    }
  })
}
export const disLike = articleID => {
  return axios({
    method: 'post',
    url: '/app/v1_0/article/dislikes',
    data: {
      target: articleID
    }
  })
}
